// @ts-ignore
/* eslint-disable */
import { request } from 'umi';

/** 验证  保存 指定源  POST */
export async function saveVerify(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<AssessWeekEmphasizeRecordData.SaveVerify>>(
    '/assess/week/emphasize/record/save/verify',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/** 初始化  保存 指定源  POST */
export async function saveInitAppointSource(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<AssessWeekEmphasizeAppointSourceData.TreeAppointSource[]>>(
    '/assess/week/emphasize/record/save/init/appoint/source',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/** 初始化  POST */
export async function saveRecord(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/assess/week/emphasize/record/save', {
    method: 'POST',
    data: options || {},
  });
}

/** 传播质效 保存 验证 POST */
export async function saveRecordQuerySubmitVerify(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<AssessWeekEmphasizeRecordData.RecordQuerySubmitVerify>>(
    '/assess/week/emphasize/record/save/query/submit/verify',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/** 传播质效 记录 列表 POST */
export async function pageRecord(options?: { [key: string]: any }) {
  return request<BaseResponseBean.responsePage<AssessWeekEmphasizeRecordData.RecordPage[]>>(
    '/assess/week/emphasize/record/page',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/** 传播质效 记录 选择 POST */
export async function selectRecord(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<AssessWeekEmphasizeRecordData.SelectRecord>>(
    '/assess/week/emphasize/record/select',
    {
      method: 'POST',
      data: options || {},
    },
  );
}

/** 更新  POST */
export async function updateRecord(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/assess/week/emphasize/record/update', {
    method: 'POST',
    data: options || {},
  });
}


/** 传播质效 记录 更新 状态 POST */
export async function updateRecordState(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/assess/week/emphasize/record/update/state', {
    method: 'POST',
    data: options || {},
  });
}

/** 传播质效 记录 更新 审核 POST */
export async function updateRecordExamine(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/assess/week/emphasize/record/update/examine', {
    method: 'POST',
    data: options || {},
  });
}

/** 传播质效 记录 导出 记录 POST */
export async function exportRankRecord(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/assess/week/emphasize/rank/record/export/excel', {
    method: 'POST',
    data: options || {},
    responseType: 'blob',
  });
}

/** 传播质效 记录 删除 POST */
export async function deletedRecord(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/assess/week/emphasize/record/deleted', {
    method: 'POST',
    data: options || {},
  });
}

/** 传播质效 选择 保存 记录 开关 POST */
export async function selectRecordSaveSwitch(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<AssessWeekEmphasizeRecordData.RecordSaveSwitchVo>>(
    '/assess/week/emphasize/record/save/switch/select',
    {
      method: 'POST',
      data: options || {},
    },
  );
}



/** 传播质效 更新 保存 记录 开关 POST */
export async function updateRecordSaveSwitch(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/assess/week/emphasize/record/save/switch/update', {
    method: 'POST',
    data: options || {},
  });
}


/** 传播质效 转移 数据  POST */
export async function forwardRecordToMonth(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/assess/week/emphasize/record/forward/month', {
    method: 'POST',
    data: options || {},
  });
}
